package com.jc.service.toy.impl;

import com.jc.base.page.Page;
import com.jc.base.ResultData;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.jc.dao.toy.ToyUserCommentInfoDao;
import com.jc.domain.toy.ToyUserCommentInfo;
import com.jc.service.toy.ToyUserCommentInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jc.base.Assert;
import com.jc.repository.generator.utils.Condition;
import com.jc.repository.generator.utils.ConditionsExtend;
import com.jc.utils.CollectionUtils;

import java.util.List;

/**
 * @author
 * @create 2016-12-13 09:32:26
 * @description
 */

@Service
public class ToyUserCommentInfoServiceImpl implements ToyUserCommentInfoService {

    private static final Logger LOGGER = LoggerFactory.getLogger(ToyUserCommentInfoServiceImpl.class);

    @Autowired
    private ToyUserCommentInfoDao toyUserCommentInfoDao;

    //this function automatic generated by application
    @Override
    public ToyUserCommentInfo queryToyUserCommentInfoById(Long id) {
        return toyUserCommentInfoDao.queryToyUserCommentInfoById(id);
    }

    //this function automatic generated by application
    @Override
    public List<ToyUserCommentInfo> saveOrInsertList(List<ToyUserCommentInfo> toyUserCommentInfos) {
        return toyUserCommentInfoDao.saveOrInsertList(toyUserCommentInfos);
    }

    //this function automatic generated by application
    @Override
    public ToyUserCommentInfo saveOrInsert(ToyUserCommentInfo toyUserCommentInfo) {
        return toyUserCommentInfoDao.saveOrInsert(toyUserCommentInfo);
    }

    //this function automatic generated by application
    @Override
    public boolean deleteToyUserCommentInfoById(Long id) {
        return toyUserCommentInfoDao.deleteToyUserCommentInfoById(id);
    }


}